//
//  AppTools.h
//  Play
//
//  Created by dllo on 15/11/17.
//  Copyright © 2015年 zt. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "BaseLabel.h"

typedef void(^AppToolBlock)(id result);
typedef void(^AppToolErrorBlock)(NSError *error);

@interface AppTools : NSObject

+(void)getDataWithURL:(NSString *)url Block:(AppToolBlock)block ErrorBlock:(AppToolErrorBlock)errorBlock;


+(void)getDataWithFileName:(NSString *)fileName Block:(AppToolBlock)block ErrorBlock:(AppToolErrorBlock)errorBlock;

+ (BaseLabel *)creatLabelWithfont:(CGFloat)fontSize
                       numberLine:(NSInteger)num
                    textAlignment:(NSTextAlignment)textAlignment;

//TianTianBAby分装的时间戳
#pragma mark -- 时间戳转换标准时间



+ (NSString *)timestampExchange:(NSInteger)time;


#pragma mark -- 距离现在时间
+ (NSString *)prettyDateWithReference:(NSDate *)reference;

@end
